
ACTOR NukeLauncher : BrutalWeapon 7452
{
	 //$category "Weapons"
	Height 20
	Weapon.SelectionOrder 100
	Weapon.AmmoUse 1
	Weapon.AmmoGive 1
	Weapon.AmmoType "Nuke"
    Inventory.PickupSound "BFGREADY"
     +WEAPON.NOAUTOAIM
	 +WEAPON.CHEATNOTWEAPON
	 -WEAPON.NO_AUTO_SWITCH
	 +WEAPON.BFG
	Inventory.PickupMessage "You got the Nuclear Rocket Launcher (Slot 5)"
	//VisibleToPlayerClass BDoomer, TacticalDoomer
	Inventory.ForbiddenTo Paladin, Sorcerer, Corvus
	States
	{
	Altfire:
	Ready:
	Ready3:
	ReadyLoop:
	Reload:
		NKLG A 1 A_WeaponReady
		NKLG A 0 A_JumpIfInventory("GoFatality", 1, "Steady")
        NKLG A 0 A_JumpIfInventory("Kicking",1,"DoKick")
        NKLG A 0 A_JumpIfInventory("Taunting",1,"Taunt")
		NKLG A 0 A_JumpIfInventory("Salute1", 1, "Salute")
		NKLG A 0 A_JumpIfInventory("Salute2", 1, "Salute")
		NKLG A 0 A_JumpIfInventory("TossGrenade",1,"TossGrenade")
		Goto Ready3
		
	DryFire:
	    NKLG A 5
		NKLG A 0 A_PlaySound("weapons/empty")
		Goto Ready+6
	
	Deselect:
	    NKLG A 0 A_StopSound(CHAN_WEAPON)
		NKLG A 0 A_TakeInventory("TossGrenade", 1)
		NKLG A 1 A_Lower
		Loop
	Select:
		NKLG A 0 A_Giveinventory("GoSpecial",1)
		NKLG AAA 1 A_Raise
		
		NKLG A 0 A_PlaySound("BFGREADY")
        TNT1 AAA 0
		TNT1 AAAAAAAAA 0 A_Raise
		Goto SelectAnimation
		
	SelectAnimation:
		TNT1 A 1
		NKLG A 0 A_GunFlash
		Goto Ready
		
    Spawn:
        NKLG D 1
        Loop
		
   Fire:
        NKLG B 1 BRIGHT
		NKLG A 0 A_PlaySound ("DSRFIRE", 1)
		NKLG A 0 A_PlaySound ("brain/spit", 4)
		NKLG A 0 A_ZoomFactor(0.9)
		NKLG B 1 BRIGHT
		NKLG A 0 A_ZoomFactor(1.0)
		NKLG A 0 A_FireCustomMissile("NuclearRocket", 0, 1, 0, -6)
		NKLG C 2 BRIGHT
		NKLG A 1 offset(0,28)
		NKLG A 1 offset(0,24)
		NKLG A 1 offset(0,26)
		NKLG A 1 offset(0,28)
		NKLG A 1 offset(0,30)
		NKLG A 1 offset(0,32)
		Goto Ready+6
	}
}
